package com.java.zhuiyun.api.new_course.controller;

import com.java.zhuiyun.api.recommendedCourse.service.RecommendedCourseService;
import com.java.zhuiyun.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName NewCourseController
 * @Description TODO PC新课推荐
 * @Author WX
 * @Date 2023/8/21 15:30
 **/
@RestController
@RequestMapping("/newCourse")
@CrossOrigin
public class NewCourseController {
    @Autowired
    private RecommendedCourseService recommendedCourseService;

    /*
    * @Author WX
    * @Description PC新课推荐
    * @Date 2023/8/21 15:34
    * @Return
    * @param null
    */
    @RequestMapping("/randonNewFour")
    public CommonResult randonNewFour(){
        return CommonResult.ok(recommendedCourseService.randonNewFour());
    }
}
